home *** CD-ROM | disk | FTP | other *** search
- diff -cr /src/mntinc37/PatchLev.h ./PatchLev.h
- *** /src/mntinc37/PatchLev.h Wed Oct 20 11:08:24 1993
- --- ./PatchLev.h Tue Oct 12 17:24:42 1993
- ***************
- *** 3,6 ****
- * directory.
- */
-
- ! #define _PatchLevel "37"
- --- 3,6 ----
- * directory.
- */
-
- ! #define _PatchLevel "38"
- diff -cr /src/mntinc37/compiler.h ./compiler.h
- *** /src/mntinc37/compiler.h Wed Oct 20 11:08:26 1993
- --- ./compiler.h Mon Oct 18 22:05:36 1993
- ***************
- *** 84,89 ****
- --- 84,92 ----
- #ifdef _SHORTINT
- # define __MSHORT__
- #endif
- + #ifdef _UNSIGNEDCHAR
- + # define __CHAR_UNSIGNED__
- + #endif
- #endif
-
- #ifdef __C68__
- diff -cr /src/mntinc37/falcon.h ./falcon.h
- *** /src/mntinc37/falcon.h Wed Oct 20 11:08:32 1993
- --- ./falcon.h Sun Oct 17 09:33:00 1993
- ***************
- *** 10,15 ****
- --- 10,82 ----
- #include <osbind.h>
- #endif
-
- + #ifdef __LATTICE__
- +
- + #define __F_TRAP {register d2,a2; "4e4e";}
- +
- + void _vfv(int);
- + char _bfv(int);
- + short _sfv(int);
- + long _lfv(int);
- +
- + void _vfs(int, int);
- + short _sfs(int, int);
- + long _lfs(int, int);
- +
- + void _vfss(int, int, int);
- + long _lfss(int, int, int);
- + void _vfll(int, long, long);
- + void _vflp(int, long, void *);
- +
- + void _vfssr(int, int, int, long *);
- + void _vfssR(int, int, int, const long *);
- + void _vfpls(int, void *, long, int);
- + short _sflsp(int, long, int, void *);
- + short _sfpls(int, void *, long, int);
- + long _lfspp(int, int, void *, void *);
- +
- + short _sfppss(int, void *, void *, int, int);
- + void _vfllpp(int, long, long, void *, void *);
- + void _vfplll(int, void *, long, long, long);
- + void _vfplpl(int, void *, long, void *, long);
- +
- + long _lfsssss(int, int, int, int, int, int);
- +
- + void _vfppllll(int, void *, void *, long, long, long, long);
- +
- +
- + #pragma inline _vfv((short)) __F_TRAP
- + #pragma inline d0=_bfv((short)) __F_TRAP
- + #pragma inline d0=_sfv((short)) __F_TRAP
- + #pragma inline d0=_lfv((short)) __F_TRAP
- +
- + #pragma inline _vfs((short),(short)) __F_TRAP
- + #pragma inline d0=_sfs((short),(short)) __F_TRAP
- + #pragma inline d0=_lfs((short),(short)) __F_TRAP
- +
- + #pragma inline _vfss((short),(short),(short)) __F_TRAP
- + #pragma inline d0=_lfss((short),(short),(short)) __F_TRAP
- + #pragma inline _vfll((short),,) __F_TRAP
- + #pragma inline _vflp((short),,) __F_TRAP
- +
- + #pragma inline _vfssr((short),(short),(short),) __F_TRAP
- + #pragma inline _vfssR((short),(short),(short),) __F_TRAP
- + #pragma inline _vfpls((short),,,(short)) __F_TRAP
- + #pragma inline d0=_sfpls((short),,,(short)) __F_TRAP
- + #pragma inline d0=_sflsp((short),,(short),) __F_TRAP
- + #pragma inline d0=_lfspp((short),(short),,) __F_TRAP
- +
- + #pragma inline d0=_sfppss((short),,,(short),(short)) __F_TRAP
- + #pragma inline _vfllpp((short),,,,) __F_TRAP
- + #pragma inline _vfplll((short),,,,) __F_TRAP
- + #pragma inline _vfplpl((short),,,,) __F_TRAP
- +
- + #pragma inline d0=_lfsssss((short),(short),(short),(short),(short),(short)) __F_TRAP
- +
- + #pragma inline _vfppllll((short),,,,,) __F_TRAP
- +
- + #else /* !__LATTICE__ */
- +
- #ifndef trap_14_wwwwww
- #if __GNUC__ > 1
- #define trap_14_wwwwww(n,a,b,c,d,e) \
- ***************
- *** 171,176 ****
- --- 238,245 ----
- })
- #endif
-
- + #endif /* __LATTICE__ */
- +
- /*
- * Video
- */
- ***************
- *** 200,205 ****
- --- 269,289 ----
- #define VID_HSYNC 4
-
- #undef Setscreen
- +
- + #ifdef __LATTICE__
- +
- + #define Setscreen(a, b, c, d) _sfppss(5, a, b, c, d)
- + #define Vsetmode(a) _sfs(88, a)
- + #define Montype() _sfv(89)
- + #define VsetSync(a) _vfs(90)
- + #define VgetSize(a) _lfs(91)
- + #define VsetRGB(a, b, c) _vfssR(93, a, b, c)
- + #define VgetRGB(a, b, c) _vfssr(94, a, b, c)
- + #define VsetMask(a, b) _vfss(150, a, b)
- +
- + #else /* !__LATTICE__ */
- +
- +
- #define Setscreen(lscrn,pscrn,rez,mode) \
- (short)trap_14_wllww((short)5,(long)(lscrn),(long)(pscrn), \
- (short)(rez),(short)(mode))
- ***************
- *** 218,224 ****
- (void)trap_14_wwwl((short)94,(short)(index),(short)(count), \
- (long *)(array))
- #define VsetMask(andmask,ormask) \
- ! (void)trap_14_www((short)150,(short)(andmask),(short)(ormask))
-
- /*
- * Sound
- --- 302,310 ----
- (void)trap_14_wwwl((short)94,(short)(index),(short)(count), \
- (long *)(array))
- #define VsetMask(andmask,ormask) \
- ! (short)trap_14_www((short)150,(short)(andmask),(short)(ormask))
- !
- ! #endif /* __LATTICE__ */
-
- /*
- * Sound
- ***************
- *** 375,380 ****
- --- 461,488 ----
- long reserve2;
- } SndBufPtr;
-
- + #ifdef __LATTICE__
- +
- + long _lfS(int, SndBufPtr *);
- + #pragma inline d0=_lfS((short),) __F_TRAP
- +
- + #define Locksnd() _lfv(128)
- + #define Unlocksnd() _lfv(129)
- + #define Soundcmd(a, b) _lfss(130, a, b)
- + #define Setbuffer(a, b, c) _lfspp(131, a, b, c)
- + #define Setmode(a) _lfs(132, a)
- + #define Settracks(a, b) _lfss(133, a, b)
- + #define Setmontracks(a) _lfs(134, a)
- + #define Setinterrupt(a, b) _lfss(135, a, b)
- + #define Buffoper(a) _lfs(136, a)
- + #define Dsptristate(a, b) _lfss(137, a, b)
- + #define Gpio(a, b) _lfss(138, a, b)
- + #define Devconnect(a, b, c, d, e) _lfsssss(139, a, b, c, d, e)
- + #define Sndstatus(a) _lfs(140, a)
- + #define Buffptr(a) _lfS(141, a)
- +
- + #else /* !__LATTICE__ */
- +
- #define Locksnd() \
- (long)trap_14_w((short)128)
- #define Unlocksnd() \
- ***************
- *** 407,418 ****
- #define Buffptr(ptr) \
- (long)trap_14_wl((short)141,(long)(ptr))
-
- /*
- * DSP functions
- *
- * Don't even *think* of trying to use these without the manual!
- */
- !
- #define Dsp_DoBlock(data_in,size_in,data_out,size_out) \
- (void)trap_14_wllll((short)96,(long)(data_in),(long)(size_in), \
- (long)(data_out),(long)(size_out))
- --- 515,565 ----
- #define Buffptr(ptr) \
- (long)trap_14_wl((short)141,(long)(ptr))
-
- + #endif /* __LATTICE__ */
- +
- /*
- * DSP functions
- *
- * Don't even *think* of trying to use these without the manual!
- */
- !
- ! #ifdef __LATTICE__
- !
- ! #define Dsp_DoBlock(a, b, c, d) _vfplpl(96, a, b, c, d)
- ! #define Dsp_BlkHandShake(a, b, c, d) _vfplpl(97, a, b, c, d)
- ! #define Dsp_BlkUnpacked(a, b, c, d) _vfplpl(98, a, b, c, d)
- ! #define Dsp_InStream(a, b, c, d) _vfplll(99, a, b, c, d)
- ! #define Dsp_OutStream(a, b, c, d) _vfplll(100, a, b, c, d)
- ! #define Dsp_IOStream(a, b, c, d, e, f) _vfppllll(101, a, b, c, d, e, f)
- ! #define Dsp_RemoveInterrupt(a) _vfs(102, a)
- ! #define Dsp_GetWordSize() _sfv(103)
- ! #define Dsp_Lock() _sfv(104)
- ! #define Dsp_Unlock() _vfv(105)
- ! #define Dsp_Available(a, b) _vfll(106, a, b)
- ! #define Dsp_Reserve(a, b) _vfll(107, a, b)
- ! #define Dsp_LoadProg(a, b, c) _sflsp(108, a, b, c)
- ! #define Dsp_ExecProg(a, b, c) _vfpls(109, a, b, c)
- ! #define Dsp_ExecBoot(a, b, c) _vfpls(110, a, b, c)
- ! #define Dsp_LodToBinary(a, b) _vflp(111, a, b)
- ! #define Dsp_TriggerHC(a) _vfs(112, a)
- ! #define Dsp_RequestUniqueAbility() _sfv(113)
- ! #define Dsp_GetProgAbility() _sfv(114)
- ! #define Dsp_FlushSubroutines() _sfv(115)
- ! #define Dsp_LoadSubroutine(a, b, c) _sfpls(116, a, b, c)
- ! #define Dsp_InqSubrAbility(a) _sfs(117, a)
- ! #define Dsp_RunSubroutine(a) _sfs(118, a)
- ! #define Dsp_Hf0(a) _sfs(119, a)
- ! #define Dsp_Hf1(a) _sfs(120, a)
- ! #define Dsp_Hf2() _sfv(121)
- ! #define Dsp_Hf3() _sfv(122)
- ! #define Dsp_BlkWords(a, b, c, d) _vfplpl(123, a, b, c, d)
- ! #define Dsp_BlkBytes(a, b, c, d) _vfplpl(124, a, b, c, d)
- ! #define Dsp_Hstat() _bfv(125)
- ! #define Dsp_SetVectors(a, b) _vfll(126, a, b)
- ! #define Dsp_MultBlocks(a, b, c, d) _vfllpp(127, a, b, c, d)
- !
- ! #else /* !__LATTICE__ */
- !
- #define Dsp_DoBlock(data_in,size_in,data_out,size_out) \
- (void)trap_14_wllll((short)96,(long)(data_in),(long)(size_in), \
- (long)(data_out),(long)(size_out))
- ***************
- *** 451,457 ****
- #define Dsp_Available(xmem,ymem) \
- (void)trap_14_wll((short)106,(long)(xmem),(long)(ymem))
- #define Dsp_Reserve(xmem,ymem) \
- ! (void)trap_14_wll((short)107,(long)(xmem),(long)(ymem))
- #define Dsp_LoadProg(file,ability,buffer) \
- (short)trap_14_wlwl((short)108,(long)(file),(short)(ability), \
- (long)(buffer))
- --- 598,604 ----
- #define Dsp_Available(xmem,ymem) \
- (void)trap_14_wll((short)106,(long)(xmem),(long)(ymem))
- #define Dsp_Reserve(xmem,ymem) \
- ! (short)trap_14_wll((short)107,(long)(xmem),(long)(ymem))
- #define Dsp_LoadProg(file,ability,buffer) \
- (short)trap_14_wlwl((short)108,(long)(file),(short)(ability), \
- (long)(buffer))
- ***************
- *** 482,486 ****
- --- 629,635 ----
- #define Dsp_Hf2() (short)trap_14_w((short)121)
- #define Dsp_Hf3() (short)trap_14_w((short)122)
- #define Dsp_HStat() (char)trap_14_w((short)125)
- +
- + #endif /* __LATTICE__ */
-
- #endif /* _FALCON_H */
- diff -cr /src/mntinc37/ioctl.h ./ioctl.h
- *** /src/mntinc37/ioctl.h Wed Oct 20 11:08:38 1993
- --- ./ioctl.h Wed Oct 13 05:20:56 1993
- ***************
- *** 39,44 ****
- --- 39,45 ----
- #define TIOCSBRK (('T'<< 8) | 21)
- #define TIOCGFLAGS (('T'<< 8) | 22)
- #define TIOCSFLAGS (('T'<< 8) | 23)
- + #define TIOCOUTQ (('T'<< 8) | 24)
-
- /* faked by the library */
- #define TIOCNOTTY (('T'<<8) | 251)
- diff -cr /src/mntinc37/stdlib.h ./stdlib.h
- *** /src/mntinc37/stdlib.h Wed Oct 20 11:09:10 1993
- --- ./stdlib.h Tue Oct 12 18:37:16 1993
- ***************
- *** 111,116 ****
- --- 111,124 ----
- __EXTERN size_t wcstombs __PROTO((char *, const wchar_t *, size_t));
- __EXTERN int wctomb __PROTO((char *, wchar_t));
-
- + __EXTERN wchar_t *wcscat __PROTO((wchar_t *, const wchar_t *));
- + __EXTERN int wcscmp __PROTO((const wchar_t *, const wchar_t *));
- + __EXTERN wchar_t *wcscpy __PROTO((wchar_t *, const wchar_t *));
- + __EXTERN size_t wcslen __PROTO((const wchar_t *));
- + __EXTERN wchar_t *wcsncat __PROTO((wchar_t *, const wchar_t *, size_t));
- + __EXTERN int wcsncmp __PROTO((const wchar_t *, const wchar_t *, size_t));
- + __EXTERN wchar_t *wcsncpy __PROTO((wchar_t *, const wchar_t *, size_t));
- +
- #ifdef __cplusplus
- }
- #endif
- diff -cr /src/mntinc37/termios.h ./termios.h
- *** /src/mntinc37/termios.h Wed Oct 20 11:09:20 1993
- --- ./termios.h Mon Oct 18 22:29:20 1993
- ***************
- *** 12,19 ****
- #define VSTOP 8
- #define VMIN 9
- #define VTIME 10
-
- ! #define NCCS (VTIME + 1)
-
- typedef unsigned short tcflag_t;
- typedef unsigned short speed_t;
- --- 12,21 ----
- #define VSTOP 8
- #define VMIN 9
- #define VTIME 10
- + #define VLNEXT 11 /* <-- Not POSIX */
- + #define VWERASE 12 /* <-- Not POSIX */
-
- ! #define NCCS (VWERASE + 1)
-
- typedef unsigned short tcflag_t;
- typedef unsigned short speed_t;
- diff -cr /src/mntinc37/types.h ./types.h
- *** /src/mntinc37/types.h Wed Oct 20 11:09:22 1993
- --- ./types.h Mon Oct 18 08:20:10 1993
- ***************
- *** 38,43 ****
- --- 38,51 ----
- #define minor(dev) ((dev) & 0x00ff)
- #define makedev(x,y) ((dev_t) ((((x) & 0xff) << 8) | ((y) & 0xff)))
-
- + typedef unsigned long fd_set;
- +
- + #define FD_ZERO(set) (*(set) = 0L)
- + #define FD_CLR(fd, set) (*(set) &= ~(1L << (fd)))
- + #define FD_SET(fd, set) (*(set) |= (1L << (fd)))
- + #define FD_ISSET(fd, set) (*(set) & (1L << (fd)))
- + #define FD_SETSIZE 32
- +
- __EXTERN int truncate __PROTO((const char *_filename, off_t length));
- __EXTERN int ftruncate __PROTO((int fd, off_t length));
-
- diff -cr /src/mntinc37/wait.h ./wait.h
- *** /src/mntinc37/wait.h Wed Oct 20 11:09:26 1993
- --- ./wait.h Wed Oct 13 07:38:28 1993
- ***************
- *** 37,50 ****
- int *__wi;
- union wait *__wu;
- };
-
- /* Allow W* to get parameter in POSIX-Style (int) or BSD-Style (union wait)*/
- #ifdef __GNUC__
- ! #define __W(x) ({union{typeof(x) __in; union wait __out;}__wu; \
- __wu.__in=(x); __wu.__out; })
- #define __WP union __waitp
- #else
- ! #define __W(x) (*(union wait *) &(x))
- #define __WP int *
- #endif
-
- --- 37,51 ----
- int *__wi;
- union wait *__wu;
- };
- + typedef union wait __union_wait_t;
-
- /* Allow W* to get parameter in POSIX-Style (int) or BSD-Style (union wait)*/
- #ifdef __GNUC__
- ! #define __W(x) ({union{typeof(x) __in; __union_wait_t __out;}__wu; \
- __wu.__in=(x); __wu.__out; })
- #define __WP union __waitp
- #else
- ! #define __W(x) (*(__union_wait_t *) &(x))
- #define __WP int *
- #endif
-
- ***************
- *** 62,68 ****
- #define WSTOPPED __WSTOPPED
- #endif
-
- ! #define WIFSIGNALED(x) (__W(x)._w.termsig != 0)
- #define WIFSTOPPED(x) (__W(x)._w.termsig == __WSTOPPED)
- #define WIFEXITED(x) (__W(x)._w.termsig == 0)
- #define WIFCOREDUMPED(x) (__W(x)._w.coredump != 0)
- --- 63,69 ----
- #define WSTOPPED __WSTOPPED
- #endif
-
- ! #define WIFSIGNALED(x) (__W(x)._w.termsig != __WSTOPPED && __W(x)._w.termsig != 0)
- #define WIFSTOPPED(x) (__W(x)._w.termsig == __WSTOPPED)
- #define WIFEXITED(x) (__W(x)._w.termsig == 0)
- #define WIFCOREDUMPED(x) (__W(x)._w.coredump != 0)
-